﻿<div ng-controller="FacturaController">

    <form ng-submit="save()">


        DniCliente   :<input type="text" ng-model="factura.DniCliente" /><br />
        Ruc :<input type="text" ng-model="factura.RucCliente" /><br />
        SubToal    :<input type="text" ng-model="factura.SubTotal" /><br />
        Igv    :<input type="text" ng-model="factura.Igv" /><br />
        Total :<input type="text" ng-model="factura.Total" /><br />
        FechaFactura    :<input type="text" ng-model="factura.FechaFactura" /><br />

        

        <button type="submit">Guardar</button>
    </form>
    <table border="1">
        <tr ng-repeat="d in facturas">
            <td>{{d.dniCliente}}</td><td> {{d.rucCliente}}</td> <td>{{d.subTotal}}</td> <td>{{d.igv}}</td> <td>{{d.total}}</td> <td>{{d.fechaFactura}}</td>
            <td><a href="" ng-click="delete(d.idFactura)">Eliminar</a></td>
            <td><a href="" ng-click="selec(d)">Update</a></td>
        </tr>
    </table>
</div>